home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000032_mswarbrick@rentokil.com_Tue Dec 2 09:31:21 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
1KB
Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
From: mswarbrick@rentokil.com (Mark Swarbrick)
Newsgroups: comp.protocols.kermit.misc
Subject: wierd scripting query via telnet
Date: 2 Dec 2003 02:11:46 -0800
Organization: http://groups.google.com
Lines: 24
Message-ID: <e516d9ec.0312020211.2fa9cb80@posting.google.com>
NNTP-Posting-Host: 213.2.66.194
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1070359906 17415 127.0.0.1 (2 Dec 2003 10:11:46 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 2 Dec 2003 10:11:46 +0000 (UTC)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14708
Hi guys..
I'm trying to write a little utility which does the following:
connect via telnet to port 1494 (citrix ica) wait about 5 seconds
after connecting and dump to a bash variable the contents of what was
echoed to screen for checking if the citrix machine is working
properly.
The citrix ica client just echo's ICAICA until it closes the port.
this takes too long so i just want to script kermit-telnet to keep the
connection open for around 5 seconds and keep the data so I can check
the contents.
How would I go about this?
So far all i've got is:
#!/usr/local/bin/kermit
telnet /nowait 102.12.76.37 1494
But this takes ages to run and doesn't dump back the contents...
Many thanks All!